﻿<%@ Page Language="C#" MasterPageFile="~/Login.master" AutoEventWireup="true" CodeFile="ADOrder.aspx.cs" Inherits="ADOrder" Title="订单管理 - 我的广告 - G维网" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMainText" Runat="Server">
<div class="mainLeft">
<div class="mainLeftTop"></div>
<div class="mainLeftMiddle" style="position: relative">
        <form id="Form1" runat=server>
         <div class="panel" align="justify">
            <div class="bodytext" align="justify">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>"></asp:SqlDataSource>
		        <br />
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
                    <ItemTemplate>
                        <strong>您的社区余额：<asp:Label ID="RemainMoneyLabel" runat="server" Text='<%# Bind("RemainMoney", "{0:C}") %>'></asp:Label>元<br />
                        社区积分：<asp:Label ID="Label2" runat="server" Text='<%# Bind("Cent") %>'></asp:Label><br /><a href="ADPay.aspx">在线转账</a></strong>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
           </div>
	        <div class="panel" align="justify">
		        <span class="orangetitle">我的广告订单</span>
		        <span class="bodytext"><br />
                    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:GoWLLConnectionString %>">
                    </asp:SqlDataSource>
		         </span>
                <asp:GridView ID="GridView1" runat="server" EmptyDataText="您还没有将任何广告加入购物车，或者你的所有订单都已经支付。"  AutoGenerateColumns="False" DataSourceID="SqlDataSource2" BackColor="#F4F4F4" BorderColor="#CCCCCC" BorderStyle="Solid" BorderWidth="2px" CellPadding="3" Font-Size="13px">
                    <RowStyle ForeColor="#000066" />
                    <HeaderStyle BackColor="#889966" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
                    <Columns>
                        <asp:BoundField DataField="AdInfo" HeaderText="广告说明" SortExpression="AdInfo" />
                        <asp:TemplateField HeaderText="展示次数" SortExpression="ShowCount">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# Bind("ShowCount") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="广告价值(元)" SortExpression="Price">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# Bind("Price") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="StartDate" DataFormatString="{0:d}" HeaderText="开始展示日期"
                            SortExpression="StartDate" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" Text='取消' CommandName='<%# Eval("ID") %>' OnClick="LinkButton1_Click" OnInit="LinkButton1_Init"></asp:LinkButton>
                                <asp:LinkButton ID="LinkButton2" runat="server" Text='支付' CommandName='<%# Eval("ID") %>' OnInit="LinkButton2_Init" OnClick="LinkButton2_Click"></asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
	        </div>
	    </form>
</div>
</div>
</asp:Content>

